﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spring.Objects.Factory.Attributes;

namespace Eirene.CLI.Services
{
    /// <summary>
    /// Displays messages.
    /// </summary>
    public class MessageService
    {
        #region Properties

        /// <summary>
        /// Gets or sets a message.
        /// </summary>
        [Required]
        public IMessage Message { get; set; }

        #endregion

        #region Public Methods

        /// <summary>
        /// Displays a message.
        /// </summary>
        public void DisplayMessage()
        {
            Console.WriteLine("\n\n" + Message.GetMessage());
            Console.WriteLine("\n\n");
        }

        #endregion
    }
}
